package gqz.mvvm.view.SideSlipItem;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.HorizontalScrollView;
import android.widget.Scroller;

/**
 * Created by Administrator on 2018/1/15.
 */

public class SideSlipView extends HorizontalScrollView {

    private final String TAG = "SideSlipView--->";

    private int mTouchSlop;
    private float startX, startY, distX, distY;//起点坐标和距离

    private Scroller scroller;
    private View leftView, centerView, rightView;//子view

    public SideSlipView(Context context) {
        super(context);
    }

    public SideSlipView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public SideSlipView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return super.onTouchEvent(ev);
    }

    @Override
    protected void onScrollChanged(int l, int t, int oldl, int oldt) {
        super.onScrollChanged(l, t, oldl, oldt);
    }
}
